Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle nan values and other non-serializable data in events from the WebView tracker #909

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

matus-tomlein
Copy link
Contributor

This fixes the problem when in case the WebView tracker tracked event or context data that included NaN values, the tracker and the app would crash.

In order to handle this case, this PR adds a a check for JSONSerialization.isValidJSONObject on both the event and context entities. In case either is not serializable, an error is logged and the event is skipped.

@matus-tomlein matus-tomlein changed the base branch from master to release/6.0.9 November 19, 2024 13:07
Copy link
Contributor

@mscwilson mscwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@matus-tomlein matus-tomlein merged commit 8f404b5 into release/6.0.9 Nov 20, 2024
17 of 19 checks passed
@matus-tomlein matus-tomlein deleted the issue/handle_webview_crash_on_nan branch November 20, 2024 14:18
@matus-tomlein matus-tomlein mentioned this pull request Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants